package com.croofr.dao.service;

/**
 * Transfor java original value to value
 * for operation in persistent service.
 * Transformer may be unique for every persistent
 * service type.
 * <p/>
 * User: bednar
 * Date: Mar 28, 2010
 * Time: 10:39:16 AM
 */
public interface ValueTransformer
{
    /**
     * Transform Long to Long
     *
     * @param value for transform
     * @return transformed Long
     */
    Long transformValue(Long value);

    /**
     * Transform String to String
     *
     * @param value for transform
     * @return transformed String
     */
    String transformValue(String value);

    /**
     * Transform Object to Object
     *
     * @param value for transform
     * @return transformed Object
     */
    Object transformValue(Object value);
}
